import request from '@/utils/request'

// 查询出售记录详情列表
export function listSellRecordDetail(query) {
  return request({
    url: '/console/oms/sellRecordDetail/list',
    method: 'get',
    params: query
  })
}

// 查询出售记录详情详细
export function getSellRecordDetail(id) {
  return request({
    url: '/console/oms/sellRecordDetail/' + id,
    method: 'get'
  })
}

// 新增出售记录详情
export function addSellRecordDetail(data) {
  return request({
    url: '/console/oms/sellRecordDetail',
    method: 'post',
    data: data
  })
}

// 修改出售记录详情
export function updateSellRecordDetail(data) {
  return request({
    url: '/console/oms/sellRecordDetail',
    method: 'put',
    data: data
  })
}

// 删除出售记录详情
export function delSellRecordDetail(id) {
  return request({
    url: '/console/oms/sellRecordDetail/' + id,
    method: 'delete'
  })
}

// 导出出售记录详情
export function exportSellRecordDetail(query) {
  return request({
    url: '/console/oms/sellRecordDetail/export',
    method: 'get',
    params: query
  })
}
